package test.api;

import cn.wen233.srpc.core.service.Config;
import cn.wen233.srpc.core.service.SunglowReference;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import test.service.StudentService;

import javax.annotation.Resource;

/**
 * @author wenei
 * @date 2021-12-26 14:50
 */
@RestController
public class StudentApi {

    @SunglowReference
    private StudentService studentService;

    @GetMapping
    public String hello() {
        return studentService.findByName("hello").toString();
    }
}
